/**
 * Copyright 2018 迅网空间 http://www.xwkj.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package io.renren.common.constants.enums;

import lombok.Getter;

/**
* @Description: 配置枚举
* @Param:
* @return:
* @Author: miaoguoxin
* @Date: 2019/10/30
*/
@Getter
public enum SysConfigType {
	ENGAGEMENT_EVERY_DAY_PRICE("engagement_every_day_price", "约会每天的单价,单位分"),
	ENGAGEMENT_NOT_PAY_DAYS("engagement_not_pay_days", " 约会免费天数"),
    OUT_REST_KEY("outside.biz.out-rest-key","外部调用（feign）的鉴权Key")
	;
    /** 类型 */
    private String type;
    /** 描述 */
    private String desc;

     SysConfigType(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }


    public static SysConfigType getByValue(String type) {
        for (SysConfigType e : values()) {
            if (e.getType().equals(type)) {  
                return e;  
            }  
        }  
        return ENGAGEMENT_EVERY_DAY_PRICE;
    }  

}
